package cloud.maque.querylist.dal.impl;

import cloud.maque.querylist.dal.grpc.interfaces.DemoRpcService;
import org.springframework.stereotype.Service;

/**
 * @author zhuyf
 * @date 2022/6/29 17:06
 */

@Service
public class DemoRpcServiceImpl implements DemoRpcService {

    @Override
    public Object demoEvent() {
        return "我是RPC返回的演示数据";
    }

    /**
     * 抛出一个异常
     *
     * @param a
     * @param b
     * @return
     */
    @Override
    public Integer demoException(Integer a, Integer b) {
        return a / b;
    }
}
